package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Collect;
import java.util.List;

public interface CollectMapper {

    List<Collect> selectAll();

    /**
     * 查询
     * @param collect
     * @return
     */
    Collect selectByOne(Collect collect);

    /**
     * 删除
     * @param collect
     * @return
     */
    int deleteByOne(Collect collect);

    /**
     * 保存
     * @param entity
     * @return
     */
    int insertByOne(Collect entity);

    /**
     * 计数
     * @param collect
     * @return
     */
    int selectForCount(Collect collect);
}